Chin Lik Teck's Java Applets Homepage ®
Welcome to my Java Programs Homepage. Please enjoy viewing.
All applets created in my Computer Science Class will be displayed here.
" [NEW] " is the latest exercises.
Click on the 'green' and try. My Computer Science lecturer is Mr. Sivagurunathan.
Lecture 1 (17 May 1999)
Exercise 1 -- Displays a triangle.
Exercise 2 -- Calculation for sum, difference, product, quotient, and average.
Lecture 2 (19 May 1999)
Exercise 1 -- Displays "I Love You" for a number of times.
Exercise 2 -- Displays multiplication of 2x using a Forloop.
Exercise 3 -- User can input any number for multiplication table.
Lecture 3 (21 May 1999)
Exercise 1 -- Displays "I Love You" and "I Need You" in an alternate manner.
Exercise 2 -- Displays the sum of square and reciprocal from 1 to 5.
Exercise 3 -- User can input any number for Exercise 2.
Lecture 4 (24 May 1999)
Exercise 1 -- Assignment of grade(1) based on certain conditions.
Exercise 2 -- Prompts the user for a positive number and displays the sum.
Lecture 5 (28 May 1999)
Exercise 1 -- Assignment of date(1) using If statement.
Exercise 2 -- Assignment of modifying grade(2) program by using Nested If statement.
Lecture 6 (31 May 1999)
Exercise 1 -- Assignment of date(2) by using Switch statement.
Exercise 2 -- Assignment of grade(3) by using Switch statement.
Lecture 7 (9 June 1999)
Exercise 1 -- Assignment of payroll by adding two scrollbars by using Class Scrollbar.
Test Questions: (23/6/99)
Question 1 -- Uses 'return' to return the volume.
Question 2 -- Calculates sum of series until a certain number.
Question 3 -- Shows the saw-tooth pattern.
Question 4 -- Calculates the volume of a pool, displays the shape of the pool.
Lecture 12 (5 July 1999)
Exercise -- Draw a picture or scan a photo and put on the applet.[NEW]
Lecture 13 (7 July 1999)
Exercise -- User can input ten numbers and stored in an array. [NEW]
Lecture 15 (12 July 1999)
Exercise -- Find the probability of 2 people having the same birthday.[NEW]
Examples:
1) Bouncing ball [NEW]
2) Dice [NEW]
3) Battleship and Submarine [NEW]
Extra Exercises :
Exercise 1.20 -- Input 3 numbers and get the max, min, average, sum and product.
Exercise 1.21 -- Input radius for calculation of circle's circumference, diameter and area.
Exercise 1.35 -- Display of squares and cubes of first 10 numbers.
Exercise 4.24 -- Find the minimum of 3 numbers.
Exercise 4.36 -- To calculate the exponential power of a number. eg: 3^2=3x3...etc.[NEW]
Java Group Project:
View? Click it.
Final Questions: [NEW]
Exercise 3.1 -- Draw a triangle.
Exercise 3.2 -- Draw an empty tic-tac-toe (noughts and crosses) board.
Exercise 3.3 -- Draw a house.
Exercise 3.4 -- Rainfall figures.
Exercise 7.7 -- The rock, scissor and paper game. Try your luck.
Exercise 8.7 -- Draw saw-tooth pattern.
Exercise 8.8 -- Multiplication table.
Exercise 8.9 -- Display first 20 term of a Fibonacci series.
Exercise 8.10 -- Sum of the series 1-1/2+1/3-1/4+... until a term <0.0001.
Exercise 12.4 -- Calculate the sum of money input by user.
Exercise 12.5 -- To calculate the sum of integers.
Exercise 12.6 -- To chech out the method of random number generator.
Exercise 12.8 -- Tax calculation.
Exercise 12.9 -- Find the area of a triangle according to length that input.
Exercise 13.10 -- Show the statistics of numbers that user input.
The End.
Guide links: